Use case-insensitive comparison. Fixes XIM module loading on AIX.
authorMatthias Clasen <maclas@gmx.de>
Mon, 1 Mar 2004 23:45:04 +0000 (23:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 1 Mar 2004 23:45:04 +0000 (23:45 +0000)
Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkimmodule.c (match_locale): Use case-insensitive
comparison. Fixes XIM module loading on AIX.  (#131277)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkimmodule.c

index 0eab7c039f014ae0313f6b45200975784a68cea8..a013c53078265502bd45acb99a12187bfc5769d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkimmodule.c (match_locale): Use case-insensitive
+       comparison. Fixes XIM module loading on AIX.  (#131277)
+
 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
index 0eab7c039f014ae0313f6b45200975784a68cea8..a013c53078265502bd45acb99a12187bfc5769d9 100644 (file)
@@ -1,3 +1,8 @@
+Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkimmodule.c (match_locale): Use case-insensitive
+       comparison. Fixes XIM module loading on AIX.  (#131277)
+
 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
index 0eab7c039f014ae0313f6b45200975784a68cea8..a013c53078265502bd45acb99a12187bfc5769d9 100644 (file)
@@ -1,3 +1,8 @@
+Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkimmodule.c (match_locale): Use case-insensitive
+       comparison. Fixes XIM module loading on AIX.  (#131277)
+
 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
index 0eab7c039f014ae0313f6b45200975784a68cea8..a013c53078265502bd45acb99a12187bfc5769d9 100644 (file)
@@ -1,3 +1,8 @@
+Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkimmodule.c (match_locale): Use case-insensitive
+       comparison. Fixes XIM module loading on AIX.  (#131277)
+
 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
index 0eab7c039f014ae0313f6b45200975784a68cea8..a013c53078265502bd45acb99a12187bfc5769d9 100644 (file)
@@ -1,3 +1,8 @@
+Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkimmodule.c (match_locale): Use case-insensitive
+       comparison. Fixes XIM module loading on AIX.  (#131277)
+
 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
index c68644332f2ca91c0ade343aec16f9af8dd3b011..90f3f94682a0d4335296d993e69a1a1fb751915e 100644 (file)
@@ -517,10 +517,10 @@ match_locale (const gchar *locale,
   if (strcmp (against, "*") == 0)
     return 1;
 
-  if (strcmp (locale, against) == 0)
+  if (g_ascii_strcasecmp (locale, against) == 0)
     return 4;
 
-  if (strncmp (locale, against, 2) == 0)
+  if (g_ascii_strncasecmp (locale, against, 2) == 0)
     return (against_len == 2) ? 3 : 2;
 
   return 0;